package com.hawthorn.admin.feign.redisService;

import com.hawthorn.admin.model.po.SysDeptPO;
import com.hawthorn.platform.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.HystrixFallbackFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>todo 同步部门到redis</p>
 * @author: fengliye@expservice.com.cn
 * @created: 2022/7/22 9:58
 * @version v1.0.1
 */
@FeignClient(
    name = "sentury-redis",
    path = "/dept",
    configuration = FeignConfig.class,
    fallbackFactory = HystrixFallbackFactory.class,
    contextId = "deptRedisClient"
)
public interface RedisDeptFeignService
{
  @PostMapping(value = "/updateDept")
  void updateDept(@RequestBody SysDeptPO sysDeptPO);
}
